package com.dw.etl.core.bean.model;

import java.io.Serializable;

public class MdMedPutfd implements Serializable {
    private static final long serialVersionUID = 1L;

    private String pk;

    private String cd;

    private String na;

    private String euTp;

    private Integer numLth;

    private Integer numPrec;

    private String valDef;

    private Byte fgAct;

    public String getPk() {
        return pk;
    }

    public void setPk(String pk) {
        this.pk = pk;
    }

    public String getCd() {
        return cd;
    }

    public void setCd(String cd) {
        this.cd = cd;
    }

    public String getNa() {
        return na;
    }

    public void setNa(String na) {
        this.na = na;
    }

    public String getEuTp() {
        return euTp;
    }

    public void setEuTp(String euTp) {
        this.euTp = euTp;
    }

    public Integer getNumLth() {
        return numLth;
    }

    public void setNumLth(Integer numLth) {
        this.numLth = numLth;
    }

    public Integer getNumPrec() {
        return numPrec;
    }

    public void setNumPrec(Integer numPrec) {
        this.numPrec = numPrec;
    }

    public String getValDef() {
        return valDef;
    }

    public void setValDef(String valDef) {
        this.valDef = valDef;
    }

    public Byte getFgAct() {
        return fgAct;
    }

    public void setFgAct(Byte fgAct) {
        this.fgAct = fgAct;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdMedPutfd other = (MdMedPutfd) that;
        return (this.getPk() == null ? other.getPk() == null : this.getPk().equals(other.getPk()))
            && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd()))
            && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa()))
            && (this.getEuTp() == null ? other.getEuTp() == null : this.getEuTp().equals(other.getEuTp()))
            && (this.getNumLth() == null ? other.getNumLth() == null : this.getNumLth().equals(other.getNumLth()))
            && (this.getNumPrec() == null ? other.getNumPrec() == null : this.getNumPrec().equals(other.getNumPrec()))
            && (this.getValDef() == null ? other.getValDef() == null : this.getValDef().equals(other.getValDef()))
            && (this.getFgAct() == null ? other.getFgAct() == null : this.getFgAct().equals(other.getFgAct()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPk() == null) ? 0 : getPk().hashCode());
        result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
        result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
        result = prime * result + ((getEuTp() == null) ? 0 : getEuTp().hashCode());
        result = prime * result + ((getNumLth() == null) ? 0 : getNumLth().hashCode());
        result = prime * result + ((getNumPrec() == null) ? 0 : getNumPrec().hashCode());
        result = prime * result + ((getValDef() == null) ? 0 : getValDef().hashCode());
        result = prime * result + ((getFgAct() == null) ? 0 : getFgAct().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", pk=").append(pk);
        sb.append(", cd=").append(cd);
        sb.append(", na=").append(na);
        sb.append(", euTp=").append(euTp);
        sb.append(", numLth=").append(numLth);
        sb.append(", numPrec=").append(numPrec);
        sb.append(", valDef=").append(valDef);
        sb.append(", fgAct=").append(fgAct);
        sb.append("]");
        return sb.toString();
    }
}